<?php 
include("header.php");

?>	
                
                <!--flex slideshow-->
                
            <div class="container">
            <div id="main" role="main">
            <section class="slider">
                <div class="flex-container">
                <div class="flexslider">
                <ul class="slides">
                    <li>
                    <img src="img/slide.jpg" />
                    <p class="flex-caption">Captions and cupcakes. Winning combination.</p>
                    </li>
                    <li>
                    <img src="img/slide2.jpg" />
                    <p class="flex-caption">This image is wrapped in a link!</p>
                    </li>
                    <li>
                    <img src="img/slide3.jpg" />
                    </li>
              </ul>
            </div>
          </div>
          </section>
          </div>
          </div>
          <!--end flex-->                
		
	<div class="container">
		<div class="row">
	<?php
	include("sidebar.php");
    
    $category = $_GET['category'];
    
    //echo $category;
    
    switch($category){
        
        default:
    	
    ?>
			
            <div class="span7 new_products">
                    <!--<div class="hompimenu">
                    <ul class="nav">
                        <li class="active"><span>-->
                        <div><h3>New Products</h3></div>
                        <!--</span></li>
                    </ul>
                    </div>
                    <div class="container">  -->                  
                    
                    <?php
                    
                        $produk = new Product_View($class_db);
                        
                        echo $produk->new_product();
                        
                    ?>
                    </div>
                
				<div class="span2 popular_products">
                    <!--<div class="hompimenu">
                    <ul class="nav">
                        <li class="active"><span>-->
                        <div>
                        <h3>Most Wanted</h3></div>
                        <!--</span></li>
                    </ul>
                    </div>-->
                    <ul class="thumbnails">
                        
                        <?php
                        
                        echo $produk->most_wanted();                 
                        
                        ?>
					
						</ul>
						</div>

			</div>
		</div>			
<?php
    break;
    
    case 1:
        
        $produk = new Product_View($class_db);
    
        echo $produk->view_category(1);
    
    break;
    
    case "2":
    $produk = new Product_View($class_db);
        echo $produk->view_category(2);
    break;
    
    case "3":
    $produk = new Product_View($class_db);
        echo $produk->view_category(3);
    break;
    
    case "4":
    $produk = new Product_View($class_db);
        echo $produk->view_category(4);
    break;

}
include("footer.php");
?>	
